import { IsNotEmpty, IsOptional, MaxLength } from 'class-validator'
import i18n, { i18nMessage } from '@/i18n'
import { PageDto } from '@libs/lhy-core'
import { ApiProperty } from '@nestjs/swagger'

export class MetaOpenApiBoardDataPageDto extends PageDto {
  @ApiProperty({ description: i18n.t('app-meta.dto.meta-open-api-board-data-page.12151141-0') })
  @IsNotEmpty()
  @MaxLength(64, { message: i18nMessage() })
  platform: string

  @ApiProperty({ description: i18n.t('app-meta.dto.meta-open-api-board-data-page.12151141-1') })
  @MaxLength(64, { message: i18nMessage() })
  @IsOptional()
  project?: string

  @ApiProperty({ description: i18n.t('app-meta.dto.meta-open-api-board-data-page.12151141-2') })
  @MaxLength(64, { message: i18nMessage() })
  @IsOptional()
  label?: string
}
